<?php /* Smarty version 2.6.18, created on 2012-05-16 22:40:13
         compiled from E:%5Cwork%5Cvfriend/library/Vfriend/Plugins/Tpl/comment.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'emoticon', 'E:\\work\\vfriend/library/Vfriend/Plugins/Tpl/comment.tpl', 9, false),)), $this); ?>
<div class="boxComment">
	<div class="commentItem">
    	<div class="userInput">
    		<textarea id="<?php echo $this->_tpl_vars['strName']; ?>
" name="<?php echo $this->_tpl_vars['strName']; ?>
" rows="0" cols="0" onfocus="javascript:cmtFocus(this.value);" onblur="javascript:cmtBlur(this.value);"><?php echo $this->_tpl_vars['strDefault']; ?>
</textarea>
        </div>
        <div class="userInput">
        	<ul>
            	<li class="firstChild">
                	<?php echo smarty_function_emoticon(array('name' => $this->_tpl_vars['strName']), $this);?>

               	</li>
            </ul>
            <input type="button" value="Gửi" class="btn" />
        </div>
    </div>
</div>
<script type="text/javascript" language="javascript" src="<?php echo @HOST_STATICS; ?>
js/library/autoresize.jquery.js"></script>
<?php echo '
	<script type="text/javascript" language="javascript">
    	function cmtFocus(strValue) {
			var strDefault	= "'; ?>
<?php echo $this->_tpl_vars['strDefault']; ?>
<?php echo '";
			if(stripTags(strValue) == strDefault) {
				$(\'#'; ?>
<?php echo $this->_tpl_vars['strName']; ?>
<?php echo '\').val("");
				$("textarea#'; ?>
<?php echo $this->_tpl_vars['strName']; ?>
<?php echo '").css("min-height","30px");
				$("textarea#'; ?>
<?php echo $this->_tpl_vars['strName']; ?>
<?php echo '").css("color","#000");
			}
		}
		function cmtBlur(strValue) {
			var strDefault	= "'; ?>
<?php echo $this->_tpl_vars['strDefault']; ?>
<?php echo '";	
			strValue		= stripTags(strValue.toLowerCase());	
			if(strValue == "" || strValue == strDefault.toLowerCase()) {
				$(\'#'; ?>
<?php echo $this->_tpl_vars['strName']; ?>
<?php echo '\').val(strDefault);			
				$("textarea#'; ?>
<?php echo $this->_tpl_vars['strName']; ?>
<?php echo '").css("min-height","17px");
				$("textarea#'; ?>
<?php echo $this->_tpl_vars['strName']; ?>
<?php echo '").css("height","17px");
				$("textarea#'; ?>
<?php echo $this->_tpl_vars['strName']; ?>
<?php echo '").css("color","#999");
			}
		}
		$(document).ready(function(){		
			$("textarea#'; ?>
<?php echo $this->_tpl_vars['strName']; ?>
<?php echo '").autoResize({
				// On resize:
				onResize : function() {					
					$(this).css({opacity:0.9});
				},				
				// After resize:
				animateCallback : function() {
					$(this).css({opacity:1});
				},
				// Quite slow animation:
				animateDuration : 300,
				// More extra space:
				extraSpace : 3
			});
		});
    </script>
'; ?>